﻿using mozhi.smarterp.Finance.Querys;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.Finance.Accounts.Repository
{
    public interface IAccountBalanceRepository : IRepository<AccountBalance, Guid>
    {
        Task<List<AccountBalance>> FindAsync(AccountBalanceQuery query);

        Task<List<AccountBalance>> GetAsync(AccountBalanceQuery query);

        Task<int> GetCountAsync(AccountBalanceQuery query);

        Task InsertAsync(List<AccountBalance> balances);

        Task UpdateAsync(List<AccountBalance> balances);

        Task DeleteAsync(int period);

        Task InsertOrUpdateAsync(List<AccountBalance> balances);

        Task DeleteAsync(List<AccountBalance> balances);
    }
}
